export const exportFile = (data: any, fileName: any, type: any) => {
  const link = document.createElement('a');
  const blob = new Blob([data], { type: 'application/octet-stream' });
  link.style.display = 'none';
  link.href = URL.createObjectURL(blob);
  link.download = fileName + '.' + type;
  document.body.appendChild(link);
  link.click();
};